﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Project.Engine.Utilities
{
    public class DefineUtil
    {
        public string Email = System.Configuration.ConfigurationManager.AppSettings["Email"].ToString();
        public string HTML_TAG_PATTERN = "<.*?>";
        public static string Domain = System.Configuration.ConfigurationManager.AppSettings["Domain"].ToString();

        #region category id - table Category

        public static int nguyenLieuLamBanhId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["nguyenLieuLamBanhId"]);
        public static int nguyenLieuTrangTriId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["nguyenLieuTrangTriId"]);
        public static int dungCuLamBanhId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["dungCuLamBanhId"]);
        public static int khuonId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["khuonId"]);
        public static int doGiaDungId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["doGiaDungId"]);
        public static int sachId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["sachId"]);
        public static int congThucId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["congThucId"]);
        public static int lopHocId = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["lopHocId"]);

        #endregion

        #region yahoo contact
        public static string contact1 = ConvertUtil.ToString(System.Configuration.ConfigurationManager.AppSettings["contact1"]);
        public static string contact2 = ConvertUtil.ToString(System.Configuration.ConfigurationManager.AppSettings["contact2"]);
        public static string contact3 = ConvertUtil.ToString(System.Configuration.ConfigurationManager.AppSettings["contact3"]);
        #endregion

        // paging
        public static int pageSize = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["pageSize"]);

        // paging search
        public static int pageSizeSearch = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["pageSizeSearch"]);

        // Right Website - so luong san pham moi nhat duoc hien thi
        public static int MaxProductNew = ConvertUtil.ToInt32(System.Configuration.ConfigurationManager.AppSettings["MaxProductNew"]);

    }
}
